ErrorDispatcher

This interface assembles an appropriate authorization error response given an error that occurred during the authorization request resolution and then dispatches it to the verifier

Inheritors

Functions

Link copied to clipboard
open suspend fun dispatchError(error: AuthorizationRequestError, errorDispatchDetails: ErrorDispatchDetails, encryptionParameters: EncryptionParameters?): DispatchOutcome
Link copied to clipboard
abstract suspend fun encodeRedirectURI(error: AuthorizationRequestError, errorDispatchDetails: ErrorDispatchDetails, encryptionParameters: EncryptionParameters?): DispatchOutcome.RedirectURI

Method forms a suitable authorization response, based on the error and the provided errorDispatchDetails, and then encodes this response to a URI. To this URI, the wallet (caller) must redirect its authorization response

Link copied to clipboard
abstract suspend fun post(error: AuthorizationRequestError, errorDispatchDetails: ErrorDispatchDetails, encryptionParameters: EncryptionParameters?): DispatchOutcome.VerifierResponse

Method forms a suitable authorization response, based on the error and the provided errorDispatchDetails, then post it to the Verifier's end-point and returns his response.